import request from '@/axios'

export const uploadImg = (data: File): Promise<IResponse> => {
  const baseURL = import.meta.env.VITE_API_BASE_PATH.replace('company', '')
  return request.post({
    url: '/admin/upload/image',
    baseURL,
    data: { file: data },
    headers: { 'Content-Type': 'multipart/form-data' }
  })
}
